<?php
try {
	print_r("Connecting...<br>");
	//$mongo	= new Mongo("mongodb://midium:s1dkorn@ds029787.mongolab.com:29787/bookshelf");
	$mongo	= new Mongo("ds029787.mongolab.com:29787");
	print_r("Connection done<br>");
	$dbase	= $mongo->listDBs();
	print_r("DB List<br>");
	echo '<pre>';
	print_r($dbase);
	$mongo->close();
} catch(MongoConnectionException $e) {
	die($e->getMessage());
}

?>